import 'package:flutter/material.dart';
import 'package:tdesign_flutter/tdesign_flutter.dart';

Widget textWithIcon({required String text,IconData icon = TDIcons.location,Color color = Colors.white}){
  return Row(
    children: [
      Icon(icon,size: 15,color: color,),
      SizedBox(width: 5,),
      Text(text,style: TextStyle(color: color,fontSize: 15),)
    ],
  );
}

Widget labelText(String text,{double fontSize=20,Color ?color}){
  return Text(
    text,
    style: TextStyle(
      color: color,
      fontSize: fontSize,
      fontWeight: FontWeight.bold,
    ),
  );
}